home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9061 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: how can an int data type accept char data?
  5. Date: 05 Mar 1996 03:49:04 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar4204904@qcd.lanl.gov>
  8. References: <4hg2si$irt@news.azstarnet.com>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: Howard Salmon's message of 5 Mar 1996 00:46:10 GMT
  13.  
  14. In article <4hg2si$irt@news.azstarnet.com>
  15. Howard Salmon <captarm@azstarnet.com> writes:
  16. <snip>
  17. HS: #include <stdio.h>
  18. HS: 
  19. HS: main()
  20. HS: {
  21. HS:     int        startingPoint, candidate, i;
  22. HS:     int        done, foundFactor;
  23. HS:     
  24. HS:     done = FALSE; 
  25. HS: 
  26. HS:                 {how can a variable declared as an integer
  27. HS:                     hold character variables?  Why wouldn't
  28. HS:                     C insist on a char data type? } 
  29.  
  30. Where is the `char' data type? FALSE is plainly undefined, and that is
  31. that. Any C compiler which diagnose this should be thrown away at
  32. once!!!
  33.  
  34. Cheers
  35. Tanmoy
  36. --
  37. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  38. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  39. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  40. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  41. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  42. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  43.